#include "Commom.hpp"

int main(){
    int shm_id = GetShareMem();//获取共享内存

    char* shmaddr = (char*)shmat(shm_id, nullptr, 0);//挂载共享内存

    //发送消息
    while(true){
        std::cout <<  "Send a msg：";
        fgets(shmaddr, SHM_SIZE, stdin);
    }

    shmdt(shmaddr);//挂载分离

    return 0;
}